package com.example.pojo;

import java.util.List;

public class Xs_ddPage {
     private List<Xs_dd> list;   //显示全部
     private int page ;   //当前页
     private int pagesize;  //当前页数据条
     private int totalsize;  //总记录数
     private int totalpage;  //总页数
     public Xs_ddPage(){};
	public Xs_ddPage(List<Xs_dd> list, int page, int pagesize, int totalsize,
			int totalpage) {
		super();
		this.list = list;
		this.page = page;
		this.pagesize = pagesize;
		this.totalsize = totalsize;
		this.totalpage = totalpage;
	}
	public List<Xs_dd> getList() {
		return list;
	}
	public void setList(List<Xs_dd> list) {
		this.list = list;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getPagesize() {
		return pagesize;
	}
	public void setPagesize(int pagesize) {
		this.pagesize = pagesize;
	}
	public int getTotalsize() {
	 
		return totalsize;
	}
	public void setTotalsize(int totalsize) {
		this.totalsize = totalsize;
	}
	public int getTotalpage() {
		this.totalpage=(totalsize-1)/(pagesize+1);//求总页数
		return totalpage;
	}
	public void setTotalpage(int totalpage) {
		this.totalpage = totalpage;
	}
     
}
